package com.iplant.wms.service.basicenum.wms;


import com.iplant.base.po.enums.BaseEnum;

public enum WMSPickingMode implements BaseEnum {
	/**
	 * 默认 无须处理
	 */
	Default(0, "默认"),

	/**
	 * 存储库位
	 */
	Stock(1, "存储库位"),
	/**
	 * 件拣货库位
	 */
	PC(2, "件拣货库位"),
	/**
	 * 箱拣货库位
	 */
	Box(3, "箱拣货库位 "),
	/**
	 * 箱/件合并拣货库位
	 */
	PCORBox(4, "箱/件合并拣货库位"),
	/**
	 * 过渡库位
	 */
	Excessive(5, "过渡库位"),
	/**
	 * 理货站
	 */
	Tally(6, "理货站"),
	/**
	 * 组装工作区
	 */
	Assemble(7, "组装工作区"),
	/**
	 * 播种库位
	 */
	Sowing(8, "播种库位"),
	/**
	 * 快拣补货位
	 */
	Fast(9, "快拣补货位"),
	/**
	 * 补充拣货位
	 */
	Supply(10, "补充拣货位")  ;

	private int value;
	private String label;
	private String remark="";

	WMSPickingMode(int value, String label) {
		this.value = value;
		this.label = label;
	}

	/**
	 *
	 * @param val
	 * @return
	 */
	public static WMSPickingMode getEnumType(int val) {
		for (WMSPickingMode type : WMSPickingMode.values()) {
			if (type.getValue() == val) {
				return type;
			}
		}
		return null;
	}
	@Override
	public int getValue() {
		return value;
	}

	@Override
	public void setValue(int value) {
		this.value = value;
	}
	@Override
	public String getLabel() {
		return label;
	}

	@Override
	public void setLabel(String label) {
		this.label = label;
	}

	@Override
	public String getRemark() {
		return remark;
	}

	@Override
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
